	<script type="text/javascript">
		$(document).ready(function(){
			$("#playerList ul li").each(function(index){
				var anchor = $(this).find("a");
				var inpt = $(this).find("input[type=checkbox]");
				anchor.click(function(){
					
				});
			});
		});
		
	</script>
	<style>
		#content_panel{
			overflow:hidden;
			float:right;
			width:80%;
		}
		#playerList{
			width:20%;
			overflow:auto;
			height:500px;
			float:left;
		}
	</style>
				<h3 style="margin:0">Player management</h3>
				<div width="100%" class="debug_border" style="background-color:#afba9b">
					<ul class="toolbar">
						<li><input type="checkbox" id="selectAll" value="1" style="background-color:#afba9b;text-decoration:none;"/></li>
						<li><input type="button" value="Delete"/></li>
						<li><input type="button" value="Merge"/></li>
						<li><?php printf("<input type=\"button\" value=\"Create\" onclick=\"location.href='?%s&edit'\"/>",AdminItemEnum::PLAYER_MGMT);?></li>
					</ul>
				</div>
				<table width="100%" cellspacing="0" cellpadding="0">
					<tr>
						<td></td>
						<td>First</td>
						<td>MI</td>
						<td>Last</td>
						<td>Email Address</td>
						<td>Hometown</td>
						<td>Current city</td>
						<td>Verified</td>
						<td>Locked</td>
						<td>Is Admin</td>
						<td></td>
					</tr>
					<?php 
						foreach($result as $p){
							echo "<tr>";
							printf("<td><input type=\"hidden\" name=\"hdnPlayerID\" value=\"%d\"/><input type=\"checkbox\" name=\"chkPlayerID\" value=\"%d\"/></td>",$p->playerid,$p->playerid);
							printf("<td>%s</td>",$p->firstName);
							printf("<td>%s</td>",$p->MI);
							printf("<td>%s</td>",$p->lastName);
							printf("<td>%s</td>",$p->emailAddress);
							printf("<td>%s</td>",$p->homeTown);
							printf("<td>%s</td>",$p->currentCity);
							printf("<td>%s</td>",$p->verified);
							printf("<td>%s</td>",$p->locked);
							printf("<td>%s</td>",$p->admin);
							printf("<td><a href=\"?%s&edit&playerid=%d\">Edit</a></td>",AdminItemEnum::PLAYER_MGMT,$p->playerid);
							echo "</tr>";
					 }?>
				</table>